Skip to content

feat(golink): rebuild Go link on the current console-ui pieces - #5547

Open
shepherdjerred wants to merge 3 commits into
mainfrom
g1-golink-look
Open

shepherdjerred wants to merge 3 commits into
mainfrom
g1-golink-look

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

Go link was the last console on the deprecated page kit (PageHeading, SummaryGrid, Segmented) with its own dialog chrome. On current console-ui the old page no longer even lays out (see Before).

What

  • Sources (All, Manual, Tailnet, Public sites, Auto-aliases) with counts live in the ConsoleShell sidebar and drive the table filter; the phone drawer shares the same nav.
  • HeaderBar holds SearchField (/ via useSearchShortcut) and New link (or a Read-only chip); FigureStrip shows headline figures; links and shortcuts are Sections with a plain .ui-table (stacked on phones).
  • Create/edit/override/delete use the shared Dialog, Field, InputAddon; copying uses CopyButton; Banner and State replace local banners.
  • The link form uses TanStack Form with the contract's Zod schema; page title is "Links · Go links"; one "—" marker for empty cells; a field's hint hides while its error shows.
  • Removed golink-dialog*, the 357-line native validation module and the local / handler. styles.css 247 -> ~55 lines in the ui.app layer. Shared theme key (legacy key migrated) and theme-color metas.
  • Conformance allowlist: 18 entries / 61 findings -> empty; eslint suppressions emptied. Redirects and the API are untouched.

Demo

Before (origin/main) After
Light
Dark
Phone 375px

New link dialog with inline validation:

Verification

  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/golink pass
  • bunx lefthook run pre-commit, bun run jscpd, check-directory-file-counts pass
  • bun scripts/checks/check-console-stack.ts OK (Go link on the standard)
  • bun run verify:extended -- --filter=@shepherdjerred/golink pass (Postgres test)
  • No Playwright suite for golink. Not run: live deployment checks.
  • expect( lines: client.test 45 -> 37 (tests for removed Segmented/golink-dialog markup dropped or migrated to ui-table/Chip/Section), page.test 11 -> 11, router.test 4 -> 4.

🤖 Generated with Claude Code

Why
Go link was the last console on the deprecated page kit (PageHeading,
SummaryGrid, Segmented) with its own dialog chrome, so it did not match the
other consoles and held the kit alive.

What
- Sources (All, Manual, Tailnet, Public sites, Auto-aliases) with counts sit in
  the ConsoleShell sidebar and drive the table filter; Shortcuts is a
  reference link. The phone drawer shares the same nav.
- HeaderBar carries the SearchField (/ via useSearchShortcut) and New link, or
  a Read-only chip; FigureStrip shows the headline figures; links and
  shortcuts are Sections with plain ui-table (stacked on phones).
- Create/edit/override/delete use the shared Dialog, Field and InputAddon;
  copying uses CopyButton; banners and states use Banner and State.
- Removes golink-dialog*, the hand-rolled native validation module and the
  local `/` handler; styles.css moves into the ui.app layer (247 -> ~50
  lines); theme uses the shared key (legacy key migrated) and theme-color
  metas.
- Conformance allowlist 18 entries (61 findings) -> empty; eslint
  suppressions emptied. Redirects and the API are untouched.

Verification
- bunx turbo run build typecheck test lint --filter=@shepherdjerred/golink
- bunx lefthook run pre-commit, bun run jscpd, directory file counts
- bun run verify:extended --filter=@shepherdjerred/golink (Postgres test)
- Rendered in a browser against the dev server in light, dark and 375px
  (screenshots in the PR). No Playwright suite exists for golink.
- Not run: live deployment checks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 05:48
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@coderabbitai review

Automated re-review request for 231745f from the CI review gate.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 231745f from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T05:56:53.695578Z cbcc455 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Why
Review follow-ups: the stack standard wants TanStack Form with Zod for forms,
the page title should follow "Page · App", and the table and dialog had two
small inconsistencies.

What
- The create/edit/override form uses @tanstack/react-form with the
  contract's UpsertManualLinkInputSchema (wrapping validateShortSlug and
  validateTargetUrl) as the validators; adds the catalog dependency.
- Page title is "Links · Go links".
- Clicks and Last clicked use the same sans "—" for nothing.
- A field's hint is hidden while its error shows, so the rule is not stated
  twice.

Verification
- bunx turbo run build typecheck test lint --filter=@shepherdjerred/golink
- bun scripts/checks/check-console-stack.ts: OK (Go link on the standard, no
  exception)
- bunx lefthook run pre-commit, bun run jscpd, verify:extended for golink
- Checked in a browser: title, aligned dashes, one message per invalid field.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for aff0caf from the CI review gate.

Why
The dialog moved to TanStack Form with Zod and had no test of its behaviour.

What
- Invalid slug and URL show exactly one message per field (no hint) and do
  not call save.
- A valid create saves the normalized slug and trimmed URL once.
- Edit pre-fills the fields and locks the name.

Verification
- bunx turbo run typecheck test lint --filter=@shepherdjerred/golink
- bunx lefthook run pre-commit

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for cbcc455 from the CI review gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: cbcc45571f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant